﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using EverBuy.SocialNetworking.BusinessObjects;

namespace EverBuy.SocialNetworking.Services
{
    /// <summary>
    /// 
    /// </summary>
    [ServiceContract]
    public partial interface IAccountService : IDisposable
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        [OperationContract]
        bool UsernameInUse(string username);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="email"></param>
        /// <returns></returns>
        [OperationContract]
        bool EmailInUse(string email);

        /// <summary>
        /// 
        /// </summary>
        [OperationContract]
        void Logout();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        [OperationContract]
        string Login(string username, string password);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="accountId"></param>
        /// <returns></returns>
        [OperationContract]
        Account GetAccountById(Int32 accountId);
    }
}
